package com.red.star.macalline;

import com.red.star.macalline.data.entity.ClientLife;
import com.red.star.macalline.data.mappers.ClientHideMapper;
import com.red.star.macalline.sched.ScheduledApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author nofish.yan@gmail.com
 * @date 2018/3/30.
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = ScheduledApplication.class)
public class ClientFansMapper {

    @Resource
    private ClientHideMapper clientHideMapper;

    @Test
    public void test() {
        List<ClientLife> clientLives = clientHideMapper.findClientAndMobileBySmsLogNew(15, 15);
        System.out.println(clientLives.size());
    }
}
